<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('审核用户')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-member-edit" th:object="${member}">
        <input name="id" th:field="*{id}" type="hidden">

        <div class="form-group">
            <!--(0-普通会员,1-白金会员,2-钻石会员，3-皇冠会员)-->
            <label class="col-sm-3 control-label">会员等级：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:each="dict : ${@dict.getType('memeber_is_vip')}">
                    <input type="radio" th:id="${'isVip_' + dict.dictCode}" name="isVip" th:value="${dict.dictValue}" th:field="*{isVip}">
                    <label th:for="${'isVip_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
        </div>

    </form>
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">
    var prefix = ctx + "system/member";
    $("#form-member-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/vip/edit", $('#form-member-edit').serialize());
        }
    }

</script>
</body>
</html>